package com.qlzb.taskmanagement.persistentData.entity.log;


import com.qlzb.taskmanagement.persistentData.entity.BaseEntity;

import javax.persistence.Entity;

/**
 * @Author: zhangshoubing
 * @Date: 2018/10/22 15:21
 */
@Entity
public class OperationHistoryCrawlerLog extends BaseEntity {
    /**
     *本次抓取总数
     */
    int  curCrawlerSum;
    /**
     *本次保存总数
     */
    int  curSum;
    /**
     *更新差异数
     */
    int updateDiff;
    /**
     * 重复数据跳过保存
     */
    int repeatSkipSum;
    /**
     * 空站址跳过保存
     */
    int nullStationSkipSum;
    /**
     * 抓取时间
     */
    String crawlerTime;
    /**
     * 抓取数据条件的开始时间
     *
     */
    String startTime;
    /**
     * 抓取数据条件的结束时间
     */
    String endTime;

    /**
     * 告警类型（交流输入停电 、一级低压脱离告警、总电压过低、直流输出电压过低、电池供电告警、二级低压脱离、FSU离线、门磁开关状态)
     *
     */
    String  warnName;
    /**
     *告警值
     */
    String warnValue;

    /**
     * 抓取序列号
     *
     */
    String serial;

    public int getRepeatSkipSum() {
        return repeatSkipSum;
    }

    public void setRepeatSkipSum(int repeatSkipSum) {
        this.repeatSkipSum = repeatSkipSum;
    }

    public int getNullStationSkipSum() {
        return nullStationSkipSum;
    }

    public void setNullStationSkipSum(int nullStationSkipSum) {
        this.nullStationSkipSum = nullStationSkipSum;
    }

    public String getWarnName() {
        return warnName;
    }

    public void setWarnName(String warnName) {
        this.warnName = warnName;
    }

    public String getWarnValue() {
        return warnValue;
    }

    public void setWarnValue(String warnValue) {
        this.warnValue = warnValue;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }


    public String getSerial() {
        return serial;
    }

    public void setSerial(String serial) {
        this.serial = serial;
    }

    public void setUpdateDiff(int updateDiff) {
        this.updateDiff = updateDiff;
    }

    public int getCurSum() {
        return curSum;
    }

    public void setCurSum(int curSum) {
        this.curSum = curSum;
    }

    public int getCurCrawlerSum() {
        return curCrawlerSum;
    }

    public void setCurCrawlerSum(int curCrawlerSum) {
        this.curCrawlerSum = curCrawlerSum;
    }

    public void setUpdateDiff() {
        int updateDiff=curCrawlerSum-curSum;
        this.updateDiff = updateDiff;
    }
    public String getCrawlerTime() {
        return crawlerTime;
    }

    public void setCrawlerTime(String crawlerTime) {
        this.crawlerTime = crawlerTime;
    }
}
